#ifndef _VTIME_
#define _VTIME_

#include "Common.h"

#define GetTotalSeconds(x) (x/1000)
#define GetTotalMinutes(x) (x/60000)
#define GetTotalHours(x) (x/3600000)
#define GetSeconds(x) (GetTotalSeconds(x)%60)
#define GetMinutes(x) (GetTotalMinutes(x)%60)
#define GetHours(x) (GetTotalHours(x)%24)

#define vclock GetVirtualTime
#define DEFAULT_TIME_SPEED 60

void InitVirtualTime(int vTime, int vSpeed);
int GetVirtualTime();
void SetTimeSpeed(int tSpeed);
int GetTimeSpeed();

#endif
